package cn.factorybox.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;
import java.util.Date;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-09-10 14:02
 */
public class Room implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;      //设备id

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer index;      //数据索引、序号

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String companyId;   //所属公司的id

    private String name;      //房间名称

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer number;      //房间编号

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String remarks;      //房间编号

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer devices;    //该房间所拥有的设备数量

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date fCreateTime;      //创建时间

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Integer getDevices() {
        return devices;
    }

    public void setDevices(Integer devices) {
        this.devices = devices;
    }

    public Date getfCreateTime() {
        return fCreateTime;
    }

    public void setfCreateTime(Date fCreateTime) {
        this.fCreateTime = fCreateTime;
    }
}
